package com.gqr.immutable;

/**
 * 演示final修饰方法
 */
public class FinalMethodDemo {

    public void drink(){

    }

    public final void eat(){


    }

    public static void play(){

    }
}

class SubClass extends FinalMethodDemo{
    @Override
    public void drink() {
        super.drink();
        super.eat();
    }

//    public void eat(){
//
//    }

    public static void play(){

    }
}
